import { defineStore } from 'pinia';
import { ref } from 'vue';
export const useLayoutStore = defineStore('layoutStore', () => {

  // 是否折叠
  const fold = ref(false)
  // 更改折叠状态
  const changeFold = function () {
    fold.value = !fold.value
  }


  // 是否刷新
  const refresh = ref(false)
  // 更改刷新状态
  const changeRefresh = function () {
    refresh.value = !refresh.value
  }

  return {
    fold, refresh,
    changeFold, changeRefresh
  }
})